package com.ashapo.pattern.pattern014command;

//第3步
//创建实现Order接口的具体类。

public class BuyStock implements Order {
    private Stock abcStock;

    public BuyStock(Stock abcStock){
        this.abcStock = abcStock;
    }

    public void execute() {
        abcStock.buy();
    }
}
